module.exports = {
    publicPath: "./",
    assetsDir: "static",
    outputDir: 'dist',
    lintOnSave: false,
    devServer: {
        proxy: {
            '/mapapi': {
                target: 'https://apis.map.qq.com',
                // ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/mapapi': ''
                }
            },
            '/api': {
                target: 'http://47.98.100.113:8080',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            },

            '/films': {
                target: 'http://47.98.100.113:8080',
                // ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/films': ''
                }
            },

            '/denglu': {
                target: 'http://49.235.105.110:3000',
                // ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/denglu': ''
                }
            },
            // '/denglu': {
            //     target: 'http://192.168.52.124:9090',
            //     // ws: true,
            //     changeOrigin: true,
            //     pathRewrite: {
            //         '^/denglu': ''
            //     }
            // },

            '/dingdanfan': {
                target: 'http://47.98.100.113:8080',
                // ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/dingdanfan': ''
                }
            },


        }
    }
};

